"""
1. 类需要继承子类
2. 必须在无参数的情况下实例化存储系统
3. 必须重写 _open _write
"""

from django.core.files.storage import Storage


class Mystorage(Storage):
    def __init__(self, name=None):
        pass

    def _open(self, name, mode="rb"):
        pass

    def _save(self, name, content, max_length=None):
        pass

    def url(self, name):
        return "http://192.168.32.6:8888/" + name

